package com.feignfilter.backend1.controller;


import com.feignfilter.backend1.feign.Backend2FeignApi;
import com.feignfilter.common.BaseReturnBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/backend1")
public class Backend1Controller {
    @Autowired
    Backend2FeignApi feignApi;
    @RequestMapping("/testController")
    public BaseReturnBean backendController(String param){
        return feignApi.testController();
    }
}
